namespace EFMysql
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class Model1 : DbContext
    {
        public Model1()
            : base("name=Model1")
        {
        }

        public virtual DbSet<pre_account> pre_account { get; set; }
        public virtual DbSet<pre_cards> pre_cards { get; set; }
        public virtual DbSet<pre_clearamount> pre_clearamount { get; set; }
        public virtual DbSet<pre_collecttask> pre_collecttask { get; set; }
        public virtual DbSet<pre_cost> pre_cost { get; set; }
        public virtual DbSet<pre_customplan> pre_customplan { get; set; }
        public virtual DbSet<pre_discount> pre_discount { get; set; }
        public virtual DbSet<pre_exchangesalesparam> pre_exchangesalesparam { get; set; }
        public virtual DbSet<pre_finance> pre_finance { get; set; }
        public virtual DbSet<pre_finance_copy> pre_finance_copy { get; set; }
        public virtual DbSet<pre_function> pre_function { get; set; }
        public virtual DbSet<pre_group> pre_group { get; set; }
        public virtual DbSet<pre_group_user_rel> pre_group_user_rel { get; set; }
        public virtual DbSet<pre_haveship> pre_haveship { get; set; }
        public virtual DbSet<pre_imagereview> pre_imagereview { get; set; }
        public virtual DbSet<pre_insourcereq> pre_insourcereq { get; set; }
        public virtual DbSet<pre_moneyexchangerecord> pre_moneyexchangerecord { get; set; }
        public virtual DbSet<pre_msg> pre_msg { get; set; }
        public virtual DbSet<pre_news> pre_news { get; set; }
        public virtual DbSet<pre_order> pre_order { get; set; }
        public virtual DbSet<pre_order_copy> pre_order_copy { get; set; }
        public virtual DbSet<pre_orderlist> pre_orderlist { get; set; }
        public virtual DbSet<pre_orderlist_copy> pre_orderlist_copy { get; set; }
        public virtual DbSet<pre_ordertimereq> pre_ordertimereq { get; set; }
        public virtual DbSet<pre_privileges> pre_privileges { get; set; }
        public virtual DbSet<pre_promotion_event> pre_promotion_event { get; set; }
        public virtual DbSet<pre_qq> pre_qq { get; set; }
        public virtual DbSet<pre_rate> pre_rate { get; set; }
        public virtual DbSet<pre_ratelog> pre_ratelog { get; set; }
        public virtual DbSet<pre_shipingtype> pre_shipingtype { get; set; }
        public virtual DbSet<pre_shop> pre_shop { get; set; }
        public virtual DbSet<pre_tasktype> pre_tasktype { get; set; }
        public virtual DbSet<pre_tiaozhang_log> pre_tiaozhang_log { get; set; }
        public virtual DbSet<pre_topuplog> pre_topuplog { get; set; }
        public virtual DbSet<pre_user> pre_user { get; set; }
        public virtual DbSet<pre_user_search> pre_user_search { get; set; }
        public virtual DbSet<pre_valueservice> pre_valueservice { get; set; }
        public virtual DbSet<pre_userordercount> pre_userordercount { get; set; }
        public virtual DbSet<pre_menu> pre_menu { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<pre_account>()
                .Property(e => e.type)
                .IsUnicode(false);

            modelBuilder.Entity<pre_account>()
                .Property(e => e.account)
                .IsUnicode(false);

            modelBuilder.Entity<pre_cards>()
                .Property(e => e.card_no)
                .IsUnicode(false);

            modelBuilder.Entity<pre_cards>()
                .Property(e => e.card_pwd)
                .IsUnicode(false);

            modelBuilder.Entity<pre_collecttask>()
                .Property(e => e.Link)
                .IsUnicode(false);

            modelBuilder.Entity<pre_collecttask>()
                .Property(e => e.ShipId)
                .IsUnicode(false);

            modelBuilder.Entity<pre_collecttask>()
                .Property(e => e.Remark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_customplan>()
                .Property(e => e.remark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_customplan>()
                .Property(e => e.username)
                .IsUnicode(false);

            modelBuilder.Entity<pre_finance>()
                .Property(e => e.subject)
                .IsUnicode(false);

            modelBuilder.Entity<pre_finance>()
                .Property(e => e.orderid)
                .IsUnicode(false);

            modelBuilder.Entity<pre_finance_copy>()
                .Property(e => e.subject)
                .IsUnicode(false);

            modelBuilder.Entity<pre_finance_copy>()
                .Property(e => e.orderid)
                .IsUnicode(false);

            modelBuilder.Entity<pre_function>()
                .Property(e => e.FUNCID)
                .IsUnicode(false);

            modelBuilder.Entity<pre_function>()
                .Property(e => e.REMARK)
                .IsUnicode(false);

            modelBuilder.Entity<pre_group>()
                .Property(e => e.TITLE)
                .IsUnicode(false);

            modelBuilder.Entity<pre_group>()
                .Property(e => e.old_role)
                .IsUnicode(false);

            modelBuilder.Entity<pre_imagereview>()
                .Property(e => e.title)
                .IsUnicode(false);

            modelBuilder.Entity<pre_insourcereq>()
                .Property(e => e.title)
                .IsUnicode(false);

            modelBuilder.Entity<pre_msg>()
                .Property(e => e.content)
                .IsUnicode(false);

            modelBuilder.Entity<pre_msg>()
                .Property(e => e.orderno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_news>()
                .Property(e => e.title)
                .IsUnicode(false);

            modelBuilder.Entity<pre_news>()
                .Property(e => e.content)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.link)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.keyword)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.position)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.comment)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.remark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.orderno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailtype)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.address)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.cmnremark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.buyername)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.nation)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.buyerno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.SKU)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailname)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailstreet)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailcity)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailstate)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailnation)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailpcode)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.mailphone)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.contacttel)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.TrancationID)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.productid)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order>()
                .Property(e => e.markup)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.link)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.keyword)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.position)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.comment)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.remark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.orderno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailtype)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.address)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.cmnremark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.buyername)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.nation)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.buyerno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.SKU)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailname)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailstreet)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailcity)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailstate)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailnation)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailpcode)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.mailphone)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.contacttel)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.TrancationID)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.productid)
                .IsUnicode(false);

            modelBuilder.Entity<pre_order_copy>()
                .Property(e => e.markup)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist>()
                .Property(e => e.orderno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist>()
                .Property(e => e.mailno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist>()
                .Property(e => e.mailtype)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist>()
                .Property(e => e.buyerno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist>()
                .Property(e => e.cmnremark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist>()
                .Property(e => e.cardnum)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist>()
                .Property(e => e.buyername)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist_copy>()
                .Property(e => e.orderno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist_copy>()
                .Property(e => e.mailno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist_copy>()
                .Property(e => e.mailtype)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist_copy>()
                .Property(e => e.buyerno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist_copy>()
                .Property(e => e.cmnremark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist_copy>()
                .Property(e => e.cardnum)
                .IsUnicode(false);

            modelBuilder.Entity<pre_orderlist_copy>()
                .Property(e => e.buyername)
                .IsUnicode(false);

            modelBuilder.Entity<pre_ordertimereq>()
                .Property(e => e.title)
                .IsUnicode(false);

            modelBuilder.Entity<pre_privileges>()
                .Property(e => e.FUNCID)
                .IsUnicode(false);

            modelBuilder.Entity<pre_promotion_event>()
                .Property(e => e.proc_program)
                .IsUnicode(false);

            modelBuilder.Entity<pre_qq>()
                .Property(e => e.qq)
                .IsUnicode(false);

            modelBuilder.Entity<pre_qq>()
                .Property(e => e.name)
                .IsUnicode(false);

            modelBuilder.Entity<pre_ratelog>()
                .Property(e => e.action)
                .IsUnicode(false);

            modelBuilder.Entity<pre_shipingtype>()
                .Property(e => e.spname)
                .IsUnicode(false);

            modelBuilder.Entity<pre_shop>()
                .Property(e => e.shopno)
                .IsUnicode(false);

            modelBuilder.Entity<pre_tasktype>()
                .Property(e => e.TypeName)
                .IsUnicode(false);

            modelBuilder.Entity<pre_tiaozhang_log>()
                .Property(e => e.remark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_topuplog>()
                .Property(e => e.topupmode)
                .IsUnicode(false);

            modelBuilder.Entity<pre_topuplog>()
                .Property(e => e.card_no)
                .IsUnicode(false);

            modelBuilder.Entity<pre_topuplog>()
                .Property(e => e.remark)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.username)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.password)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.name)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.shopid)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.tel)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.email)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.qq)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.role)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.logip)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.sendway)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.haveshiptype)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.createip)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user>()
                .Property(e => e.markuplist)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.username)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.password)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.name)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.shopid)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.tel)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.email)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.qq)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.role)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.logip)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.sendway)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.haveshiptype)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.createip)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.markuplist)
                .IsUnicode(false);

            modelBuilder.Entity<pre_user_search>()
                .Property(e => e.spname)
                .IsUnicode(false);

            modelBuilder.Entity<pre_valueservice>()
                .Property(e => e.servicename)
                .IsUnicode(false);

            modelBuilder.Entity<pre_menu>()
                .Property(e => e.Title)
                .IsUnicode(false);
        }
    }
}
